<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ListView;
use frontend\components\HotWordsWidget;
use frontend\components\RctCreditdetailWidget;
use frontend\components\RctDocWidget;
use frontend\components\HotDocWidget;
/* @var $this yii\web\View */
/* @var $searchModel common\models\DocSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

// $this->title = '分类';
// $this->params['breadcrumbs'][] = $this->title;
?>
<div class="container" style="background:#303030 ;color:#FFF">
  <div class="row">
    <ol class="breadcrumb" style="background:#303030 ;font-size:20px;color:#FFF">
		<li><a href="<?= Yii::$app->homeUrl;?>">首页</a></li>
		<li>分类</li>
	</ol>
  

     <div class="col-md-8">
	<h2>
	<span style="background:#404040 ;color:#FFF">软件</span>
	<span style="background:#404040 ;color:#FFF">硬件</span>
	<span style="background:#404040 ;color:#FFF">前端</span>
	<span style="background:#404040 ;color:#FFF">后端</span>
	<span style="background:#404040 ;color:#FFF">移动端</span>
	<span style="background:#404040 ;color:#FFF">数据库</span>
	<span style="background:#404040 ;color:#FFF">网络</span>
   </h2>
   <br>
     		<?= ListView::widget([
				'id'=>'docList',
				'dataProvider'=>$dataProvider,
				'itemView'=>'_listitem',//子视图,显示一篇文章的标题等内容.
				'layout'=>'{items} {pager}',
				'pager'=>[
						'maxButtonCount'=>10,
						'nextPageLabel'=>Yii::t('app','下一页'),
						'prevPageLabel'=>Yii::t('app','上一页'),
		],
		])?>
	 </div>
	 <div class="col-md-4" >
	 <h3>其他</h3>
	 			<div class="searchbox">
				<ul class="list-group">
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
				  <h4><span class="glyphicon glyphicon-search" aria-hidden="true"></span> 查找词条</h4>
				  </li>
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">				  
					  <form class="form-inline" action="index.php?r=doc/index" id="w0" method="get">
						  <div class="form-group">
						    <input type="text" class="form-control" name="DocSearch[title]" id="w0input" placeholder="按标题">
						  </div>
						  <button type="submit" class="btn btn-default">搜索</button>
					</form>
				  
				  </li>
				</ul>			
			</div>
			
			<div class="tagcloudbox">
				<ul class="list-group">
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
				  <h4><span class="glyphicon glyphicon-tags" aria-hidden="true"></span> 热门关键字</h4>
				  </li>
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
		
					<?= HotWordsWidget::widget(['words'=>$words])?>
				  </li>
				</ul>			
			</div>
			
			
			<div class="commentbox">
				<ul class="list-group">
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
				  <h4><span class="glyphicon glyphicon-glass" aria-hidden="true"></span> 用户贡献榜</h4>
				  </li>
				  <li class="list-group-item"style="background:#303030 ;color:#FFF">
		
					<?= RctCreditdetailWidget::widget(['recentCreditdetails'=>$recentCreditdetails])?>
				  </li>
				</ul>			
			</div>
	 </div>
  </div>
</div>
